#!/usr/bin/env python
# -*- coding: utf-8 -*-
#coding=utf8

# 本文件由自动工具 proto.py 自动生成，请勿修改
# filename msg10000_csbuf.py
# package ptl

from ptl.base_csbuf import *


# message Req10001
class Req10001:
	def __init__(self):
		self.protoid = 10001
		self.heroId = 0

	def Marshal(writer):
		writer.setUint32(self.heroId, 1)

	def Unmarshal( reader):
		self.heroId = reader.getUint32(1)
# message Resp10001
class Resp10001:
	def __init__(self):
		self.protoid = 10001
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
# message Req10002
class Req10002:
	def __init__(self):
		self.protoid = 10002
		self.goodsId = 0
		self.count = 0
		self.type = 0

	def Marshal(writer):
		writer.setUint32(self.goodsId, 1)
		writer.setUint32(self.count, 2)
		writer.setUint32(self.type, 3)

	def Unmarshal( reader):
		self.goodsId = reader.getUint32(1)
		self.count = reader.getUint32(2)
		self.type = reader.getUint32(3)
# message Resp10002
class Resp10002:
	def __init__(self):
		self.protoid = 10002
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
# message Req10003
class Req10003:
	def __init__(self):
		self.protoid = 10003
		self.heroId = 0
		self.suitId = 0

	def Marshal(writer):
		writer.setUint32(self.heroId, 1)
		writer.setUint32(self.suitId, 2)

	def Unmarshal( reader):
		self.heroId = reader.getUint32(1)
		self.suitId = reader.getUint32(2)
# message Resp10003
class Resp10003:
	def __init__(self):
		self.protoid = 10003
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
# message Req10004
class Req10004:
	def __init__(self):
		self.protoid = 10004
		pass

	def Marshal(writer):
		pass

	def Unmarshal( reader):
		pass
# message Resp10004
class Resp10004:
	def __init__(self):
		self.protoid = 10004
		self.value = []

	def Marshal(writer):
		countvalue = len(self.value)
		writer.setArray(countvalue, 1)
		for i in range(countvalue):
			writer.setMessage(0)
			self.value[i].Marshal(writer)
			writer.endSetMessage()

	def Unmarshal( reader):
		for i in range(reader.getArray(1)):
			msg = HeroInfo() 
			reader.getMessage(0)
			msg.Unmarshal(reader)
			reader.endGetMessage()
			self.value.append(msg)
# message Req10005
class Req10005:
	def __init__(self):
		self.protoid = 10005
		self.heroId = 0

	def Marshal(writer):
		writer.setUint32(self.heroId, 1)

	def Unmarshal( reader):
		self.heroId = reader.getUint32(1)
# message Resp10005
class Resp10005:
	def __init__(self):
		self.protoid = 10005
		self.status = 0
		self.heroInfo = HeroInfo()

	def Marshal(writer):
		writer.setUint32(self.status, 1)
		writer.setMessage(2)
		self.heroInfo.Marshal(writer)
		writer.endSetMessage()

	def Unmarshal( reader):
		self.status = reader.getUint32(1)
		reader.getMessage(2)
		self.heroInfo.Unmarshal(reader)
		reader.endGetMessage()
# message Req10006
class Req10006:
	def __init__(self):
		self.protoid = 10006
		self.heroId = 0

	def Marshal(writer):
		writer.setUint32(self.heroId, 1)

	def Unmarshal( reader):
		self.heroId = reader.getUint32(1)
# message Resp10006
class Resp10006:
	def __init__(self):
		self.protoid = 10006
		self.status = 0
		self.heroInfo = HeroInfo()

	def Marshal(writer):
		writer.setUint32(self.status, 1)
		writer.setMessage(2)
		self.heroInfo.Marshal(writer)
		writer.endSetMessage()

	def Unmarshal( reader):
		self.status = reader.getUint32(1)
		reader.getMessage(2)
		self.heroInfo.Unmarshal(reader)
		reader.endGetMessage()
# message Req10007
class Req10007:
	def __init__(self):
		self.protoid = 10007
		self.heroId = 0
		self.goodsId = 0
		self.count = 0

	def Marshal(writer):
		writer.setUint32(self.heroId, 1)
		writer.setUint32(self.goodsId, 2)
		writer.setUint32(self.count, 3)

	def Unmarshal( reader):
		self.heroId = reader.getUint32(1)
		self.goodsId = reader.getUint32(2)
		self.count = reader.getUint32(3)
# message Resp10007
class Resp10007:
	def __init__(self):
		self.protoid = 10007
		self.status = 0
		self.heroInfo = HeroInfo()

	def Marshal(writer):
		writer.setUint32(self.status, 1)
		writer.setMessage(2)
		self.heroInfo.Marshal(writer)
		writer.endSetMessage()

	def Unmarshal( reader):
		self.status = reader.getUint32(1)
		reader.getMessage(2)
		self.heroInfo.Unmarshal(reader)
		reader.endGetMessage()
# message Req10008
class Req10008:
	def __init__(self):
		self.protoid = 10008
		self.itemId = 0
		self.total = 0

	def Marshal(writer):
		writer.setUint32(self.itemId, 1)
		writer.setUint32(self.total, 2)

	def Unmarshal( reader):
		self.itemId = reader.getUint32(1)
		self.total = reader.getUint32(2)
# message Resp10008
class Resp10008:
	def __init__(self):
		self.protoid = 10008
		self.status = 0

	def Marshal(writer):
		writer.setUint32(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint32(1)
